package com.tomvian.tools.functions 
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	
	public function processDisplay(method:Function, doc:DisplayObjectContainer, name:String, end:uint, start:uint = 0):void
	{
		for (var i:uint = start; i < end; i++)
		{
			var obj:DisplayObject = doc[name + i];
			if (obj) method(obj);
		}
	}
}